export const shortId = (length = 8) => {
    try {
        return window.crypto
            .randomUUID()
            .replace(/-/g, '')
            .substring(2, length + 2);
    } catch (e) {
        return 'gxr7f3yi';
    }
};
